<!doctype html>
<html>
    <head>
        <?php if (system\session::get('logged') == false AND SECURE <> 'XLKDZJRKWOSLCMG') : throw new \Exception('Nemáte oprávnění přistupovat k souboru!', 761);
        endif;
        ?>
        <meta charset="<?php echo CHARSET; ?>">
        <title><?php echo $webname; ?></title>
        <link href="<?php echo WWW_PATH; ?>/public/css/index.css" rel="stylesheet" type="text/css" media="screen">
    </head>

    <body>
        <div class="container">
            <div class="header"><strong>php</strong><u>notes</u>~</div>
            <div class="menu"><a href="http://localhost/verejne">veřejné</a> | <a href="http://localhost/soukrome/note">poznámky</a> | <a href="http://localhost/soukrome/todo">todo</a> | <a href="http://localhost/soukrome/manual">návody</a> | <a href="http://localhost/kontakty">kontakty</a> | <a href="http://localhost/nastaveni">nastavení</a> | <a href="http://localhost/logout">odhlásit</a></div>
            <div class="info"><?php echo $info; ?></div>
            <div class="contents">
                <?php foreach ($contents as $value) : ?>
                    <div id="item">
                        <table width="670" id="contents">
                            <tr>
                                <td colspan="2" align="right"><strong><?php echo '(' . $value['groupe'] . ')'; ?></strong></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left"><h2><u><?php echo $value['title']; ?></u></h2></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left"><?php echo $value['text']; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left"><br><h5>vytvořeno: <?php echo date('j. n. Y', $value['created']); ?> | uživatelem: <?php echo $value['autor']; ?> | viditelnost: veřejné</h5></td>
                            </tr>
                            <tr>
                                <td width="50%" align="left"><a href="http://localhost/verejne/upravit/id/<?php echo $value['id']; ?>">upravit</a> | <a href="http://localhost/verejne/smazat/id/<?php echo $value['id']; ?>">smazat</a></td>
                                <td width="50%" align="right"><a href="http://localhost/verejne/vyrizeno/id/<?php echo $value['id']; ?>">vyřízeno</a></td>
                            </tr>
                        </table>
                    </div>
                <?php endforeach; ?>
            </div>
            <div class="sidebar"><?php echo $sidebar; ?></div>
            <div class="footer"><?php echo $footer; ?></div>
        </div>
    </body>
</html>